#!/bin/bash
ip=$1
str=$2
str=${str//,/ };
arr=($str);


ceph-deploy gatherkeys $ip
for i in ${arr[@]};do
        echo $i
	echo $ip
    ceph-deploy --overwrite-conf osd prepare $ip:/dev/${i}1
    sleep 1
done
